import request from '@/utils/request'

// 查询点位攻略列表
export function listStrategy(query) {
  return request({
    url: '/tile/strategy/list',
    method: 'get',
    params: query
  })
}

// 查询点位攻略详细
export function getStrategy(pointStrategyId) {
  return request({
    url: '/tile/strategy/' + pointStrategyId,
    method: 'get'
  })
}

// 新增点位攻略
export function addStrategy(data) {
  return request({
    url: '/tile/strategy',
    method: 'post',
    data: data
  })
}

// 修改点位攻略
export function updateStrategy(data) {
  return request({
    url: '/tile/strategy',
    method: 'put',
    data: data
  })
}

// 删除点位攻略
export function delStrategy(pointStrategyId) {
  return request({
    url: '/tile/strategy/' + pointStrategyId,
    method: 'delete'
  })
}
